-- cloaking
-- created by zhuangsl
-- 隐匿状态，对非BOSS目标造成三倍伤害且无法反击，攻击后状态消失

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local endRound = condition["end_round"];

        -- 2倍伤害
        local propId = PropM.getPropId("probability_damage");
        table.insert(props, { propId, 1000, 1000, endRound, });

        -- 不受反击
        propId = PropM.getPropId("cant_be_attack");
        table.insert(props, { propId, 1, 1000, endRound, });

        -- 攻击后状态消失
        propId = PropM.getPropId("attack_clear_status");
        table.insert(props, { propId, "cloaking", 1, endRound, });

        return props;
    end,

    desc = function(who, status, condition)
        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        return desc;
    end,
};
